<template>
  <div class="info-component">
    <div class="info-component__title">
      <div class="info-component__title__left">
        <div class="info-component__title__left__logo"></div>
        <div class="info-component__title__left__text">
          <slot name="left"></slot>
        </div>
      </div>
      <div class="info-component__title__right">
        <slot name="right"></slot>
      </div>
    </div>

    <div class="info-component__content">
      <slot name="content"></slot>
    </div>
  </div>
</template>

<style lang="less" scoped>
.info-component {
  &__title {
    display: flex;
    align-items: center;
    height: 1.3rem;
    justify-content: space-between;
    &__left {
      display: flex;
      align-items: center;
      &__logo {
        height: 1.3rem;
        width: 0.4rem;
        background-color: var(--td-primary-color-7, #0052d9);
        margin-right: 0.285rem;
      }
      &__text {
        color: var(--td-text-color-primary);
        font-size: 14px;
        line-height: 1.3rem;
        font-weight: bold;
      }
    }
    &__right {
      color: var(--td-success-color);
      font-size: 14px;
      line-height: 1.3rem;
    }
  }

  &__content {
    padding: 1rem 0;
  }
}
</style>
